package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Daily;
import cn.wolfcode.trip.base.domain.Travel;
import cn.wolfcode.trip.base.domain.TravelContent;
import cn.wolfcode.trip.base.domain.User;
import cn.wolfcode.trip.base.query.DailyQueryObject;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.TravelQueryObject;
import com.github.pagehelper.PageInfo;


public interface ITravelService {

    PageInfo<Travel> selectForList(QueryObject qo);


    void saveOrUpdate(Travel travel);

    Travel selectById(Long id,Long purpose);

    TravelContent getContentById(Long id);

    void updateState(Travel travel);

    PageInfo<Travel> regionHotTravelList(QueryObject qo);

    PageInfo<Travel> getDaily(DailyQueryObject qo);
}
